import request from '@/utils/request';

// 新增货品信息
export function addGoods(data) {
    return request({
        url: '/goods/addGoods',
        method: 'post',
        data: data
    })
}

//修改货品信息
export function modifyGoods(data) {
    return request({
        url: '/goods/modifyGoods',
        method: 'post',
        data: data
    })
}

//分页查询货品列表
export function listGoods(data) {
    return request({
        url: '/goods/listGoods',
        method: 'get',
        params: data
    })
}

//删除货品信息
export function delGoods(data) {
    return request({
        url: '/goods/delGoods',
        method: 'post',
        data: data
    })
}
